import {
  getMaterialbillList,
} from '@/api/purchase/pickplanbill.js';
import { formatSelectList } from '@/utils/business.js';
export default {
  data() {
    return {
      materialbillList: []
    }
  },
  created() {
    this.fetchMaterialbillList();
  },
  methods: {
    fetchMaterialbillList() {
      getMaterialbillList({
        pageNum: 1,
        pageSize: 100,
        category: '015',
      }).then((res) => {
        this.materialbillList = formatSelectList(res.rows || [], {
          text: 'productName',
          value: 'productName',
        });
      });
    }
  },
}